package com.fortune.dto.in.clientOrder;

import com.fortune.dto.in.cOrder.PurchaseGiftDto;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2018/5/28 0028.
 */
public class DOrderProductDto {
    @ApiModelProperty(example="客户id")
    @NotBlank(message="客户id不能为空")
    private String ClientId;
    @ApiModelProperty(example="商品id")
    @NotBlank(message="商品id不能为空")
    private String productId;
    //	@ApiModelProperty(example="商品数量")
//	@Min(value=1,message="商品数量不能小于1")
//	private int num;
    //销售
    private List<PurchaseGiftDto> sales;
    //赠送
    private List<PurchaseGiftDto> gift;
    //	@ApiModelProperty(example="回空箱数量")
//	@Min(value=0,message="回空箱数量不能为负数")
//	private int backBox;
    @ApiModelProperty(example = "商品总金额")
    private BigDecimal pTotalPrice;
    @ApiModelProperty(example = "押金金额")
    private BigDecimal dTotalPrice;

    public String getClientId() {
        return ClientId;
    }

    public void setClientId(String clientId) {
        ClientId = clientId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public List<PurchaseGiftDto> getSales() {
        return sales;
    }

    public void setSales(List<PurchaseGiftDto> sales) {
        this.sales = sales;
    }

    public List<PurchaseGiftDto> getGift() {
        return gift;
    }

    public void setGift(List<PurchaseGiftDto> gift) {
        this.gift = gift;
    }

    public BigDecimal getpTotalPrice() {
        return pTotalPrice;
    }

    public void setpTotalPrice(BigDecimal pTotalPrice) {
        this.pTotalPrice = pTotalPrice;
    }

    public BigDecimal getdTotalPrice() {
        return dTotalPrice;
    }

    public void setdTotalPrice(BigDecimal dTotalPrice) {
        this.dTotalPrice = dTotalPrice;
    }
}
